<template>
  <div class="input">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="标签名称">
        <el-input v-model="formInline.user"></el-input>
      </el-form-item>
      <el-form-item label="状态" class="status">
        <el-select v-model="formInline.region" placeholder="请选择">
          <el-option label="启用" value="shanghai"></el-option>
          <el-option label="禁用" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button @click="onSubmit">清除</el-button>
        <el-button type="primary" @click="onSubmit">搜索</el-button>
      </el-form-item>
    </el-form>
    <div class="tag">
      <el-button type="success" icon="el-icon-edit" @click="onSubmit"
        >新增标签</el-button
      >
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      formInline: {
        user: '',
        region: ''
      }
    }
  },
  methods: {
    onSubmit () {
      console.log('submit!')
    }
  }
}
</script>

<style scoped lang="scss">
.input {
  display: flex;
  width: 100%;
  // background-color: red;
  position: relative;
  .status {
    margin-left: 50px;
  }
  //新增标签样式
  .tag {
    position: absolute;
    right: 0px;
  }
}
</style>
